<template>
	<view>
		<my-login v-if="!authentication"></my-login>
		<my-userInfo v-else></my-userInfo>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				authentication: '',

			};
		},
		onLoad(options) {
			this.authentication = uni.getStorage({
				key: 'authentication',
				success: res => {
					this.authentication = res.data
				}
			})
		},
		onShow() {
			this.authentication = uni.getStorage({
				key: 'authentication',
				success: res => {
					this.authentication = res.data
				}
			})
		},
		onReady() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">

</style>